package com.erlang.spring.controller;

import com.erlang.spring.dao.AccountDao;
import com.erlang.spring.factory.BeanFactory;
import com.erlang.spring.service.AccountService;
import org.junit.Test;

/**
 * @Description：
 */
public class ClientController {
    

   @Test
    public void saveAccount() {
       AccountService accountService = (AccountService) BeanFactory.getBean("accountService");
       accountService.setAccountDao((AccountDao) BeanFactory.getBean("accountDao"));
       accountService.saveAccount();
    }

}
